<div class="inner">
    <!-- Begin one column window -->
    <div class="onecolumn">
        <div class="header">
            <span>Quản lý tin tức</span>
        </div>
        <br class="clear"/>
        <div class="content">
            <form id="form_data" name="form_data" action="" method="post">
                <table class="data" width="100%" cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <th style="width:35%">Tiêu đề</th>
                            <th style="width:25%">Chỉ mục</th>
                            <th style="width:20%">Sửa lần cuối</th>
                            <th style="width:10%">Thao tác</th>
                            <th style="width:10%">Trạng thái</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($allPostInfo as $post): ?>
                        <tr>
                            <td><?php echo $post['title_vn'] ?></td>
                            <td><a href="<?php echo site_url('admin/post/edit/' . $post['parent_id']) ?>"><?php echo $post['name_vn'] ?></a></td>
                            <td><?php echo $post['modified'] ?></td>
                            <td>
                                <a href="<?php echo site_url('admin/post/edit/' . $post['id']) ?>"><img src="<?php echo STATIC_DOMAIN ?>images/admin/icon_edit.png" alt="Sửa" class="help" title="Sửa"/></a> - 
                                <?php if($post['status'] == 1): ?>
                                <a href="<?php echo site_url('admin/post/hide/' . $post['id']) ?>"><img src="<?php echo STATIC_DOMAIN ?>images/admin/folder.png" alt="Lưu trữ" class="help" title="Lưu trữ"/></a> - 
                                <?php else: ?>
                                <a href="<?php echo site_url('admin/post/show/' . $post['id']) ?>"><img src="<?php echo STATIC_DOMAIN ?>images/admin/accept.jpg" alt="Hiển thị" class="help" title="Hiển thị"/></a> - 
                                <?php endif; ?>
                                <a href="<?php echo site_url('admin/post/delete/' . $post['id']) ?>"><img src="<?php echo STATIC_DOMAIN ?>images/admin/icon_delete.png" alt="Xóa" class="help" title="Xóa"/></a>
                            </td>
                            <td>
                                <?php if($post['status'] == 1): ?>
                                <span style="color:green;font-weight:bold">Hiển thị</span>
                                <?php else: ?>
                                <img src="<?php echo STATIC_DOMAIN ?>images/admin/ico_hourglass.jpg" alt="Waiting"/> Lưu trữ
                                <?php endif; ?>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </form>

            <!-- Begin pagination -->
            <div class="pagination">
                <?php echo $pagination ?>
            </div>
            <!-- End pagination -->

        </div>
    </div>
    <!-- End one column window -->
</div>